<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<TITLE>请假登记</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="<%=basePath%>/css/top.css" type=text/css rel=stylesheet>
<LINK href="<%=basePath%>/css/popcalendar.css" type=text/css
	rel=stylesheet>
<LINK href="<%=basePath%>/css/main.css" type="text/css" rel="stylesheet">
<SCRIPT src="<%=basePath%>/js/popcalendar.js"></SCRIPT>
<SCRIPT src="<%=basePath%>/js/My97DatePicker/WdatePicker.js"></SCRIPT>


<SCRIPT src="function.js"></SCRIPT>

<SCRIPT language=JavaScript>
function CheckForm()
{
	if (document.getElementById("sltLeaderId").length == 0)
	{
		alert("未设置考勤管理人员，请联系系统管理员！");
		return (false);
	}

   if(document.Form1.txtLeaveType.value=="")
   { alert("请假原因不能为空！");
     return (false);
   }
   
    if(!checkIsDateTime(document.Form1.txtLeaveDate1.value))
   {
	 alert("开始时间不正确！");
	 return (false);
   }
   
   if(!checkIsDateTime(document.Form1.txtLeaveDate2.value))
   {
	 alert("结束时间不正确！");
	 return (false);
   }

   return (true);
}
			</SCRIPT>

<META content="MSHTML 6.00.6000.21089" name=GENERATOR>
</HEAD>
<BODY topMargin=5>
<FORM id=Form1 name=Form1 action="LeaveServlet" method=post>
<DIV><INPUT id=__VIEWSTATE type=hidden value="add" name="leave">
</DIV>
<DIV id=pnlMain>
<TABLE class=small cellSpacing=0 cellPadding=3 width="100%" border=0>
	<TBODY>
		<TR>
			<TD class=Big><IMG height=18
				src="<%=basePath%>/img/office/attendance.gif" width=18
				align=absMiddle> <SPAN class=big3> 请假登记</SPAN> <BR>
			</TD>
		</TR>
	</TBODY>
</TABLE>
<TABLE class=small cellSpacing=1 cellPadding=2 width=500 align=center
	bgColor=#000000 border=0>
	<TBODY>
		<tr>
			<td class=TableData>请假人：</td>
			<td class=TableData noWrap><input type="text" name="txtName"
				class=BigInput id=txtLeaveDate1 maxLength=20></td>
		</tr>
		<TR>
			<TD class=TableData noWrap>请假原因：</TD>
			<TD class=TableData><B><TEXTAREA class=BigInput
				id=txtLeaveType name=txtLeaveType rows=3 cols=50></TEXTAREA> </B></TD>
		</TR>
		<TR>
			<TD class=TableData noWrap>日期：</TD>
			<TD class=TableData noWrap><INPUT class=BigInput
				id=txtLeaveDate1 maxLength=20 value="" name=txtLeaveDate1
				onclick="WdatePicker()"> 至 <INPUT class=BigInput
				id=txtLeaveDate2 maxLength=20 value="" name=txtLeaveDate2
				onclick="WdatePicker()"></TD>
		</TR>
		<TR>
			<TD class=TableData noWrap>审批人员：</TD>
			<TD class=TableData><SELECT class=BigSelect id=sltLeaderId
				name=sltLeader>
				<OPTION value="系统管理员" selected>系统管理员</OPTION>
				<OPTION value="肖经理">肖经理</OPTION>
			</SELECT> <INPUT id="ckbMobile" type="checkbox" name="ckbMobile" /> <LABEL
				for=ckbMobile> 使用手机短信提醒 </LABEL></TD>
		</TR>
		<TR>
			<TD class=TableControl noWrap align=middle colSpan=2><INPUT
				class=BigButton title=请假 onClick="return CheckForm();" type=submit
				value=请假 name=submit /> &nbsp;&nbsp; <INPUT class=BigButton
				onClick="location='leave.aspx'" type=button value=返回></TD>
		</TR>
	</TBODY>
</TABLE>
</DIV>
<DIV><INPUT id=__EVENTVALIDATION type=hidden value= /></DIV>
</FORM>
</BODY>
</HTML>
